<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
    <title>Jackson's Account Book</title>
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.1.1/build/cssbase/base-min.css" />
    <link type="text/css" href="/static/jquery/css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" /> 
    <link type="text/css" rel="stylesheet" href="/static/styles.css">
    <script type="text/javascript" src="/static/jquery/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="/static/jquery/js/jquery-ui-1.8.2.custom.min.js"></script>
    <script type="text/javascript" src="/static/scripts.js"></script>
</head>
<body>
    <section class="wrapper">
        <header>
            <div>
            {%if user %}
                <b>{{user.nickname}} &lt;{{user.email}}&gt;</b>
                {%if is_admin%} | <a href="/_ah/admin">Admin</a>{%endif%}
                {%if sign_out%} | <a href="{{sign_out}}">Sign out</a>{%endif%}
            {% else %}
                {%if sign_in%}<a href="{{sign_in}}">Sign in</a>{%endif%}
            {%endif%}
            </div>
        </header>
        <section>
            {%block body%}{%endblock%}
        </section>
        <footer>
            <address>Author: Jackson Tian</address>
        </footer>
    </section>
</body>
</html>